/* 余额充值页面样式 */
.balance-recharge-page {
  padding-bottom: 100rpx;
  background-color: #f5f5f5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 顶部标题栏 */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30rpx;
  height: 100rpx;
  background-color: #fff;
  border-bottom: 1rpx solid #e8e8e8;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

.back-btn {
  width: 100rpx;
  height: 60rpx;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 28rpx;
  color: #333;
  border: none;
  background: none;
}

.page-title {
  font-size: 36rpx;
  font-weight: 600;
  color: #333;
}

.placeholder {
  width: 100rpx;
}

/* 余额显示区域 */
.balance-section {
  background-color: #fff;
  margin-top: 120rpx;
  margin-bottom: 20rpx;
  padding: 40rpx 30rpx;
  text-align: center;
  box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
}

.balance-label {
  font-size: 28rpx;
  color: #666;
  margin-bottom: 20rpx;
  display: block;
}

.balance-amount {
  font-size: 64rpx;
  font-weight: 600;
  color: #ff6b35;
  margin-bottom: 10rpx;
  display: block;
}

.update-time {
  font-size: 24rpx;
  color: #999;
}

/* 充值金额选择区域 */
.recharge-section {
  background-color: #fff;
  padding: 30rpx;
  margin-bottom: 20rpx;
  box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
}

.section-title {
  font-size: 32rpx;
  font-weight: 600;
  color: #333;
  margin-bottom: 30rpx;
  display: block;
}

/* 预设金额选项 */
.amount-options {
  display: flex;
  flex-wrap: wrap;
  gap: 20rpx;
  margin-bottom: 30rpx;
}

.amount-option {
  width: calc(25% - 15rpx);
  height: 100rpx;
  border: 2rpx solid #e8e8e8;
  border-radius: 10rpx;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.3s;
}

.amount-option.selected {
  border-color: #ff6b35;
  background-color: rgba(255, 107, 53, 0.05);
}

.amount-text {
  font-size: 30rpx;
  color: #333;
}

.selected-icon {
  position: absolute;
  top: 0;
  right: 0;
  width: 28rpx;
  height: 28rpx;
  background-color: #ff6b35;
  border-radius: 0 0 0 28rpx;
}

/* 自定义金额输入 */
.custom-amount-group {
  margin-bottom: 20rpx;
}

.amount-input-wrapper {
  display: flex;
  align-items: center;
  padding: 20rpx 0;
}

.currency-symbol {
  font-size: 36rpx;
  color: #333;
  margin-right: 10rpx;
}

.amount-input {
  flex: 1;
  font-size: 36rpx;
  color: #333;
  text-align: left;
}

/* 充值说明 */
.recharge-tips {
  font-size: 24rpx;
  color: #999;
  margin-bottom: 20rpx;
  display: block;
}

/* 底部充值按钮 */
.bottom-section {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30rpx;
  background-color: #fff;
  box-shadow: 0 -2rpx 10rpx rgba(0, 0, 0, 0.05);
}

.recharge-button {
  background-color: #ff6b35;
  color: #fff;
  font-size: 36rpx;
  height: 96rpx;
  line-height: 96rpx;
  border-radius: 48rpx;
  border: none;
}

.recharge-button:not([disabled]) {
  background-color: #ff6b35;
}

.recharge-button[disabled] {
  background-color: #cccccc;
}

/* 错误提示 */
.error-message {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 20rpx 40rpx;
  border-radius: 10rpx;
  font-size: 28rpx;
  z-index: 9999;
}

/* 适配不同屏幕尺寸 */
@media screen and (min-width: 768px) {
  .amount-option {
    width: calc(25% - 15rpx);
  }
}